package com.aspose.cells;

class zbzd extends zcdb {
   zbzd(PivotFilter var1) throws Exception {
      this.d = 601;
      int var2 = 30;
      if (var1.j != null) {
         var2 += var1.j.length() * 2 + 4;
      }

      if (var1.getValue1() != null) {
         var2 += var1.getValue1().length() * 2 + 4;
      }

      if (var1.getValue2() != null) {
         var2 += var1.getValue2().length() * 2 + 4;
      }

      this.c = new byte[var2];
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.getFieldIndex()), 0, this.c, 0, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.i), 0, this.c, 4, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(zcee.K(var1.getFilterType())), 0, this.c, 8, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.getEvaluationOrder()), 0, this.c, 12, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.c), 0, this.c, 16, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.d), 0, this.c, 20, 4);
      this.c[24] = -1;
      this.c[25] = -1;
      this.c[26] = -1;
      this.c[27] = -1;
      short var3 = 0;
      if (var1.j != null) {
         var3 = (short)(var3 | 1);
      }

      if (var1.getValue1() != null) {
         var3 = (short)(var3 | 4);
      }

      if (var1.getValue2() != null) {
         var3 = (short)(var3 | 8);
      }

      System.arraycopy(com.aspose.cells.b.a.zc.a(var3), 0, this.c, 28, 2);
      int var4 = 30;
      if (var1.j != null) {
         var4 = zcch.a(this.c, var4, var1.j);
      }

      if (var1.getValue1() != null) {
         var4 = zcch.a(this.c, var4, var1.getValue1());
      }

      if (var1.getValue2() != null) {
         zcch.a(this.c, var4, var1.getValue2());
      }

   }
}
